# -*- coding: utf-8 -*-
from selenium.webdriver.common.by import By
environment_rdc={
    '环境管理列表': {
        '新增': [By.CSS_SELECTOR,'.mp-icon-plus-2'],
        '环境名称搜索框': [By.XPATH,'//*[@placeholder="请输入环境名称、应用、分支、需求编号"]'],
        '删除第一个应用': [By.XPATH,'//*[contains(text(),"删除")]'],
        '确认删除': [By.XPATH,'//*[@class="el-button el-button--default el-button--primary el-button--danger"]/span'],
        '查找环境名称': [By.CSS_SELECTOR,'.environments-integrate-env-title']
    },
    '新增环境页面': {
        '输入环境名称': [By.XPATH,'//*[@placeholder="请输入环境名称"]'],
        '确定':[By.XPATH,'//*[@class="el-dialog el-dialog--small mc-dialog--smaller"]//*[@text="确定"]']
        }
}